import { Controller, Get, Render } from '@nestjs/common';
import { FrontService } from './front.service';

@Controller('')
export class FrontController {
  constructor(private readonly frontService: FrontService) {}

  @Get()
  @Render('index')
  async index() {
    return {
      title: 'Hello World!',
      message: 'Welcome to the front page!',
    };
  }
}
